<template>
  <div>
    <div id="main" style="height: 150px;width: 150px">

    </div>


  </div>
</template>

<script>
import * as echarts from 'echarts';
export default {
  name: "showee",
  data() {
    return {
      data1: ''
    }
  },
  methods: {
    ssss(){
      var chartDom = document.getElementById('main');
      var myChart = echarts.init(chartDom);
      var option;

      option = {
        xAxis: {
          type: 'category',
          data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
          type: 'value'
        },
        series: [
          {
            data: [0,2,4,6,8,10,12,14,16],
            type: 'line'
          }
        ]
      };

      option && myChart.setOption(option);
    }
  },
  mounted() {
    this.ssss()
  }
}
</script>

<style scoped>

</style>